Functional Imaging of Treatment Effects